import useMockPagination from "./useMockPagination";
import useReachDivBottom from "./useReachDivBottom";
import { RequestTuple } from "@/type/request";


export default function useListDivPages(id, request: RequestTuple, params = {}) {
    const { loading, list, initList, getList, ifDone } = useMockPagination(request, params);
    console.log('useReachDivBottom',id);
    
    useReachDivBottom(id, getList);

    return { loading, list, ifDone };
}